package com.qf.czh.vhr.Mapper;

import com.qf.czh.vhr.entity.Position;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface PositionMapper {
    List<Position> getAllPositions();

    Integer addPosition(Position position);

    Position getPositionByName(String name);

    Integer deletePositionById(Integer id);

    Integer updatePosition(Position position);

    List<Position> getPositionByPage(@Param("p") Integer p, @Param("size") Integer size);

    Integer getTotal();
}
